package com.koron.order.risk.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.order.risk.feign.dto.EquipmentParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author jzp
 * @since 2022/12/30
 */
@FeignClient(value = "eam-service-device", fallbackFactory = FeignFallbackFactory.class)
public interface LineEquipmentFeign {

    @PostMapping("/equipment/getBatchBaseParams")
    Response<List<EquipmentParams>> getBatchBaseParams(@RequestBody List<String> equipmentIds);

    @PostMapping("/equipment/getTowerParams")
    Response<Map<String, Map<String, String>>> getTowerParams(@RequestBody List<String> equipmentIds);

}
